﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Uploader.aspx.cs" Inherits="WebUI.EditPages.Uploader" Theme="POSSystem" ValidateRequest="false" %>
<%@ Register Src="~/Controls/SysControls/ImageCropper.ascx" TagName="ImageCropper" TagPrefix="uc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Upload File</title>
    <base target="_self"> 
</head>
<body style="background-color:White !important; background-image:none !important; overflow:hidden" onload="window.returnValue = '';">
    <script type="text/javascript">
         function choosePic() {
             window.returnValue = '<%= GetOutput() %>' + "|" + getDesc() ;
             window.close();
             return false;
         }
    </script>

    <form id="form1" runat="server">
    <div>
        <uc:ImageCropper ID="cropper" runat="server" Height="133px" Width="142px" ScaleWidth="142" ScaleHeigh="133"  />
        <br style="clear:both" />
        <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClientClick="window.returnValue = ''; window.close(); return false;" />
        <asp:Button ID="btnOK" runat="server" Text="OK" OnClientClick="return choosePic();" />
        <br />
        <br />
        <div>
            <asp:Label class="labelNote" Font-Bold="true" runat="server">Step by step:</asp:Label><br />
            <div style="padding-left:5px"><asp:Label class="labelNote" runat="server">1. Browse a picture then click Upload</asp:Label></div>
            <div style="padding-left:5px"><asp:Label ID="Label1" class="labelNote" runat="server">2. Click Edit picture then drag to your favourite position then click Crop(like Facebook)</asp:Label></div>
            <div style="padding-left:5px"><asp:Label ID="Label2" class="labelNote" runat="server">3. If a picture too large or small, you can scale it to a specific ratio</asp:Label></div>
        </div>
    </div>
    </form>
</body>
</html>
